package com.hucheng.user.mapper;

import com.hucheng.user.entity.UserPointDO;
import com.hucheng.user.entity.UserPointExpiredDetailsDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-07-10
 * @Description: 用户积分
 **/
@Mapper
public interface UserPointMapper {
    UserPointDO get(Integer userId);

    void updateSubtractPointByUserId(UserPointDO userPointDO);

    void updateAddPointByUserId(UserPointDO userPointDO);

    void updateBatchPoint(@Param("lists") List<UserPointDO> lists);
}
